package com.spider.extends6constructor;

public class Test2 {
    public static void main(String[] args) {
        //目标：子类调用父类构造器的应用场景
        Teacher t = new Teacher("张无忌",'男',"Java");
        System.out.println(t.getName());
        System.out.println(t.getSex());
        System.out.println(t.getSkill());
    }
}
